package cn.tj212.xiaoyin.opt.business;

import cn.tj212.xiaoyin.core.course.domain.CourseSection;
import cn.tj212.xiaoyin.opt.vo.ConstsClassifyVO;

import java.util.List;
import java.util.Map;

public interface IPortalBusiness {

    /**
     * 获取所有分类，包括一级和二级
     * @return
     */
    public List<ConstsClassifyVO> queryAllClassify();

    /**
     * 获取所有分类
     * @return
     */
    public Map<String,ConstsClassifyVO> queryAllClassifyMap();

    /**
     * 获取课程章节
     * @param courseId
     * @return
     */
    public List<CourseSection> queryCourseSection(Long courseId);

    /**
     * 为分类设置课程推荐
     * @param classifyVOList
     */
    void prepareRecomdCourses(List<ConstsClassifyVO> classifyVOList);
}
